﻿using System;
using System.ComponentModel.DataAnnotations;

namespace EasyMvc.Models
{
     [Table("Role")]
    public class Role
    {
        public int Id { get; set; }
        [StringLength(100)]
        [Required(ErrorMessage = "角色名不能为空")]
        public string Name { get; set; }

        [StringLength(100)]
        public string Description { get; set; }

        [StringLength(500)]
        public string PowerIds { get; set; }

        [StringLength(4000)]
        public string Permission { get; set; }
    }
   
}
